package main

import (
	"change.tm/microservice"
	Protobuf "./protobuf"
	Controller "./controller"
)

func main() {
	server := microservice.CreateServer()
	// 创建服务对象
	service := &Controller.Service{}
	// 实例化接口实现
	Protobuf.RegisterTestpaperServer(server, service)
	// 关联服务与接口实例
	microservice.Register("testpaper", server)
	// 注册微服务，helloworld 为微服务名称
}
